﻿using DatabaseLockCoreSample.Data.Core;
using DatabaseLockCoreSample.Data.Mapping;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace DatabaseLockCoreSample.Data
{
    public class ApplicationContext
        : DbContext
    {
        public ApplicationContext(DbContextOptions options) 
            : base(options)
        {}
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.ApplyConfiguration(new GirlMap());
        }
        public virtual DbSet<Girl> Girl { get; set; }
    }
}
